package org.example.platform.design.zerenlian;

public class Zjl extends manager{
    public Zjl(String name) {
        super(name);
    }

    @Override
    public void getResult(Request request) {
        if(request.getType().equals("请假")){
            System.out.println("批准请假:"+request.getContent()+"数量："+request.getNum());
        }else  if(request.getType().equals("加薪") && request.getNum() <= 500){
            System.out.println("批准加薪:"+request.getContent()+"数量："+request.getNum());
        }else  if(request.getType().equals("加薪") && request.getNum() > 500){
            System.out.println("再说吧加薪:"+request.getContent()+"数量："+request.getNum());

        }
    }
}